package com.etung.iot.demo.storage;

import com.etung.iot.demo.dao.RealDataMapper;
import com.etung.iot.demo.modles.RealData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RealStoreRule implements StorageHandler{
    @Autowired
    private RealDataMapper realDataMapper;
    @Override
    public void handler(RealData realData) {
        realDataMapper.insert(realData);
    }
}
